package com.app.service;


import com.app.mapper.UserMapper;
import com.app.model.UserModel;
import com.app.vo.LoginVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 用户
 * @Author: N
 * @Date: 2022年11月24日10点26分
 */
public interface UserService{

    int insert(UserModel model);//新增

    int update(UserModel model);//修改

    void updateAll(UserModel model);

    int getNosRegisterCount();
    UserModel   getUserByMobile(String mobile);//手机号加用户类型查询
    UserModel getUserByPassWord(String mobile,String passWord);//密码查询

    UserModel getUserByCustomerId(int customerId);
    UserModel getUserByRId(int rId);

    UserModel getUserById(int id);

    Object doLogin(String mobile,int type,String mobileCode,String phoneInfo,String passWord,String userCode) throws Exception;

    Object getUserInfo(int type,UserModel user);

    int getNosUserCount();
}
